<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>   
		<div class="row">
				<div class="col-xs-12">
					<div class="box">
						<div class="box-content no-padding">
							<table
								class="table table-bordered table-striped table-hover table-heading table-datatable"
								id="datatable-1">
								<thead>
									<tr>
										<th>#</th>
										<th>标题</th>
										<th>内容</th>
										<th>创建者</th>
										<th>发布部门</th>
										<th>发布时间</th>
										<c:choose>
											<c:when test="${Approving==1}">											
											<th>操作</th>
											</c:when>
										
										<c:otherwise>
										<th>审批者</th>
										<th>审批时间</th>
										</c:otherwise>	
										</c:choose>									
									</tr>
								</thead>
									<tbody>				
							<tr>
								<td>${paper.id}</td>
								<td>${paper.title}</td>
								<td>${paper.content}</td>
								<td>${paper.creator}</td>
								<td>${paper.department}</td>
								<td>${paper.createTime}</td>
									<c:choose>
											<c:when test="${Approving==1}">											
										<td>	<a href="approvePaper?id=${paper.id}&approverId=${sessionScope.employee.id}" class="btn btn-primary">审核通过</a>
										<a href="unapprovePaper?id=${paper.id}" class="btn btn-primary">审核不通过</a>
										</td>	
											</c:when>
										
										<c:otherwise>
										<td>${approver}</td>
										<td>${paper.approveTime}</td>
										</c:otherwise>
										</c:choose>
							</tr>
					</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>